/*
 * Text.h
 *
 *  Created on: 2010-6-3
 *      Author: Guobc
 */

#ifndef TEXT_H_
#define TEXT_H_

#include <string>
#include "ASTAbstractNode.h"

namespace HA {
/**
 * This interface represents a piece of content in the HTML document
 */
class Text: public HA::ASTAbstractNode {

public:

	Text() :
		HA::ASTAbstractNode() {

	}
	/**
	 * Sets contents of this node.
	 * @parem text A piece of content of this node.
	 */
	virtual void setText(const string& text) = 0;

	/**
	 * Gets contents of this node.
	 * @return The text of this node.
	 */
	virtual string getText() = 0;

};
}

#endif /* TEXT_H_ */
